<jsp:directive.include file="/jsp/includes/taglibs.jsp" />

<script>
$(document).ready(function() {
	$("#newAccountsTable").dataTable({
		"bPaginate": false,
		"bLengthChange": false,
		"bFilter": false,
		"bSort": false,
		"bInfo": false,
		"bAutoWidth": true	
	}) ;
});
</script>

<table id="newAccountsTable" class="dataTable" class="display" width="100%">
	<thead>
		<tr>
			<th class="left" nowrap="nowrap"><spring:message code="search.account.results.name"/></th>
			<th><spring:message code="search.account.results.email"/></th>
			<th><spring:message code="search.account.results.sourceDate"/></th>
		</tr>	
	</thead>

<c:forEach items="${ newAccounts }" var="account"> 
	<tr>
		<td class="left">
			<a href="<c:url value="/admin/account/edit?id=${ account.id }"/>">
			${ account.name }</a>
		</td>
		<td>
			${ account.email }
		</td>
		<td nowrap="nowrap">
			<fmt:formatDate value="${account.sourceDate}" type="both"/>
		</td>
	</tr>
</c:forEach>
</table>